import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router/index.js'
import store from './store';
import myplugin from './plugins'
import "./assets/reset.css"
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app=createApp(App);//创建应用
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router);//this.$router this.$route
app.use(store);//this.$store
// 插件是扩展 框架的功能 插件  组件化:把界面代码模块化
app.use(myplugin)
app.mount('#app')//应用挂载到网页 #app